{% extends "files/base.html" %}
{% block title %}Индекс{% endblock %}
{% block content_title %}{% endblock %}
{% block extrajs %}{% endblock %}
{% block stylesheet %}{% endblock %}
{% block main %}
<h2>{% block formtitle %}castom form{% endblock %}</h2>
<form method="post" action=".">
 {% for field in form %}    
   <p class="formlbl">{{ field.label_tag }}{% if field.field.required %}<font color="red">*</font>{% endif %}</p>
   {% if field.errors %}<p class="formerrors">{{ field.errors }}</p>{% endif %}
   <p class="formfld">{{ field }}</p>
 {% endfor %}
 <input type="submit" value="{% block formsubmittitle %}Submit{% endblock %}" class="submit">
</form>
{% endblock %}
